Skip to content

fix(FloatButton): BackTop attribute invalid #7009

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 16, 2023

Conversation

selicens
Copy link
Member

@selicens selicens commented Oct 8, 2023

#7008
image
将inheritAttrs删除是因为组件内有消费attrs,type从props中取则是被声明过的props无法从attribute中获取

@selicens
Copy link
Member Author

selicens commented Oct 9, 2023

搞混了一个点,inheritAttrs为false时,通过attrs是能够手动消费透传,而且wrapSSR下inheritAttrs需为false

@selicens
Copy link
Member Author

selicens commented Oct 9, 2023

image
齐活

};

const transitionProps = getTransitionProps('fade');
return wrapSSR(
<Transition {...transitionProps}>
<FloatButton v-show={state.visible} {...floatButtonProps} ref={domRef}>
{{
icon: () => <VerticalAlignTopOutlined />,
default: () => slots.default?.() || defaultElement,
icon: () => slots.default?.() || slots.icon?.() || <VerticalAlignTopOutlined />,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我发现 default 是没有用到的吧, 就去掉吧,留着以后万一要加点什么

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1

@tangjinzhou tangjinzhou merged commit f1bcf20 into vueComponent:main Oct 16, 2023
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants